|
LM SET BLEND MODE
This command sets the DirectX blend mode for the light maps when applied to the DarkBasic objects, the full range of values is available for use but it is recommended that you use the one of the values 4,5 or 6.
LM Set Blend Mode Mode
Mode
The method to blend the lightmap with the base texture.
This command does not return a value.
Blend mode 4 multiplies the light map with the base texture (MODULATE) and is the default setting. Using this mode may produce results that look too dark when the base texture is quite dark itself. The base texture cannot become brighter in this mode, only darker. Blend mode 5 multiplies the light map with the base texture and then by 2 (MODULATE2X), this produces brighter results than the previous mode and can produce an over exposure effect where the base texture becomes brighter than it was originally. Using this mode with lights in the range 0.0-0.5 will produce the same results as mode 4 (0.5*baseTex * 2 = 1.0*baseTex). Blend mode 6 multiplies the light map with the base texture and then by 4 (MODULATE4X) which can produce very bright results and can heavily overexpose a scene. Again using this mode with lights in the range 0.0-0.25 will produce the same results as mode 4.
|